-- GENERATED SPELL FOR [Cylina Darkheart] --


function spell0_6374(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_6374', 669, 1)
end

function Sorts_6374(pUnit, Event)
local choix_sorts_6374 = math.random(0, 0)
if choix_sorts_6374 == 0 then
pUnit:RegisterEvent('spell0_6374', 1, 1)
end
end

function mob6374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6374', math.random(1500, 3000), 1)
end

function mob6374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6374, 1, 'mob6374_Action')
RegisterUnitEvent(6374, 2, 'mob6374_Leave')
RegisterUnitEvent(6374, 3, 'mob6374_Kill')
RegisterUnitEvent(6374, 4, 'mob6374_Die')
